<?php
/**
* This is a custom class for helloworld kit
* @link http://webappkit.net
* @package example
* @author J.Ducastel <nospam0@ducastel.name>
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*/

class ExampleKit extends WakKit {

    /**
     *@var array data to inject into template
     */
    var $data = array(
        'msg'=>"meeow");

    /**
     * Application kits have to implment this method
     * handles http requests
     */
    function run() {
        // setting language
        $lang=isset($_GET['lang'])?$_GET['lang']:'en';
        $this->templates->setCriteria('lang',$lang);
        // getting template
        $tpl = $this->templates->get('home');

        $this->counter=webappkit::timecounter();

        echo $tpl->render($this->data);
    }
}